package com.kehutong.wxapi.response;

import org.coraframework.json.annotation.JSONField;

import java.util.List;

/**
 * 获取标签成员响应对象
 * @author: liukunlong
 * @date: 2021-03-08 17:40
 */
public class TagGetResponse {

    /**
     * errcode
     */ /**
     * errcode : 0
     * errmsg : ok
     * tagname : 乒乓球协会
     * userlist : [{"userid":"zhangsan","name":"李四"}]
     * partylist : [2]
     */

    @JSONField(name = "errcode")
    private Integer errcode;
    /**
     * errmsg
     */
    @JSONField(name = "errmsg")
    private String errmsg;
    /**
     * tagname
     */
    @JSONField(name = "tagname")
    private String tagname;
    /**
     * userlist
     */
    @JSONField(name = "userlist")
    private List<UserlistDTO> userlist;
    /**
     * partylist
     */
    @JSONField(name = "partylist")
    private List<Integer> partylist;

    public Integer getErrcode() {
        return errcode;
    }

    public void setErrcode(Integer errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getTagname() {
        return tagname;
    }

    public void setTagname(String tagname) {
        this.tagname = tagname;
    }

    public List<UserlistDTO> getUserlist() {
        return userlist;
    }

    public void setUserlist(List<UserlistDTO> userlist) {
        this.userlist = userlist;
    }

    public List<Integer> getPartylist() {
        return partylist;
    }

    public void setPartylist(List<Integer> partylist) {
        this.partylist = partylist;
    }

    public static class UserlistDTO {
        /**
         * userid
         */ /**
         * userid : zhangsan
         * name : 李四
         */

        @JSONField(name = "userid")
        private String userid;
        /**
         * name
         */
        @JSONField(name = "name")
        private String name;

        public String getUserid() {
            return userid;
        }

        public void setUserid(String userid) {
            this.userid = userid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
